#ifndef __h2_H
#define __h2_H

#include "public.h"

typedef struct H2_SENSOR 
{
	 uint32_t h2_raw;
	 float h2_temperature;
	 uint32_t h2_compensated;
} H2Data;
extern struct H2_SENSOR h2_sensor;
struct H2_SENSOR* get_h2_sensor_data(void);
void h2_cal(uint16_t timer);
void h2_get_data(uint8_t parameter);
void h2_init(void);
void process_h2_data(int group) ;
void least_squares_fit(H2Data *averages, float *slope, float *intercept);
#endif
